home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _26B07206445C46B688CEAE1268097C04 < prev    next >
Encoding:
Text File  |  2004-01-06  |  2.6 KB  |  84 lines

  1.  
  2. AIBehaviour.GLeader = {
  3.     Name = "GLeader",
  4.     pathname = "",
  5.  
  6.     -- SYSTEM EVENTS            -----
  7.     ---------------------------------------------
  8.     OnSelected = function(self,entity )
  9.     end,
  10.     ---------------------------------------------
  11.     OnSpawn = function(self,entity )
  12.         entity:SelectPipe(0,"securearea");
  13.     end,
  14.     ---------------------------------------------
  15.     OnActivate = function(self,entity )
  16.     end,
  17.     ---------------------------------------------
  18.     OnNoTarget = function(self, entity )
  19.     end,
  20.     ---------------------------------------------
  21.     OnPlayerSeen = function( self,entity )
  22.     end,
  23.     ---------------------------------------------
  24.     OnPlayerMemory = function( self,entity )
  25.     end,
  26.     ---------------------------------------------
  27.     OnEnemySeen = function(self,entity )
  28.     end,
  29.     ---------------------------------------------
  30.     OnEnemyMemory = function(self,entity )
  31.     end,
  32.     ---------------------------------------------
  33.     OnDeadFriendSeen = function(self,entity )
  34.     end,
  35.     ---------------------------------------------
  36.     OnDeadEnemySeen = function(self,entity )
  37.     end,
  38.     ---------------------------------------------
  39.     OnInterestingSoundHeard = function(self,entity )
  40.     end,
  41.     ---------------------------------------------
  42.     OnThreateningSoundHeard = function(self, entity )
  43.     end,
  44.     ---------------------------------------------
  45.     OnGunfireHeard = function(self,entity )
  46.     end,
  47.     ---------------------------------------------
  48.     OnFootstepsHeard = function( self,entity )
  49.     end,
  50.     ---------------------------------------------
  51.     OnGranateSeen = function(self, entity )
  52.     end,
  53.     ---------------------------------------------
  54.     OnLongTimeNoTarget = function( self,entity )
  55.     end,
  56.     ---------------------------------------------
  57.     OnGroupMemberDied = function(self, entity )
  58.     end,
  59.     ---------------------------------------------
  60.     OnNoNearerHidingPlace = function(self, entity , sender)
  61.     end,    
  62.     ---------------------------------------------
  63.     OnNoHidingPlace = function(self, entity, sender )
  64.     end,    
  65.     ---------------------------------------------
  66.     OnReceivingDamage = function (self,entity, sender)
  67.     end,
  68.     ---------------------------------------------
  69.     OnReload = function (self,entity, sender)
  70.     end,
  71.     ---------------------------------------------
  72.  
  73.     OnEnemyContact = function (self,entity, sender)
  74.         if (entity ~= sender) then
  75.             local target = AI:GetAttentionTargetOf(sender.id);
  76.             if (target~=nil) then
  77.                 Game:ShowIngameDialog(-1, "", "", 12, entity:GetName()..": Pin him down "..sender:GetName().."! Everyone else scramble for cover!", 4);
  78.                 entity:SelectPipe(0,"hide_from",target.id);
  79.             end
  80.         end
  81.     end,
  82.     ---------------------------------------------
  83.     
  84. }